package com.faker.core.generate.data.code.zh;

import com.github.javafaker.Address;
import com.github.javafaker.Faker;
import com.github.javafaker.Name;

import java.util.Locale;

/**
 * 中文数据生成
 */
public class GenerationDataCN {
    static void fakerGeneration() {
        Faker faker = new Faker(new Locale("zh-CN"));
//        Name name = faker.name();
//        System.out.println(name.fullName());//杨修杰
//        System.out.println(name.firstName());//越泽
//        System.out.println(name.lastName());//卢
//        System.out.println(name.username());//越彬.傅
//        System.out.println(name.title());//职位：Legacy Markets Orchestrator
//        System.out.println(name.prefix());//Miss
//        System.out.println(name.suffix());//Jr.


        Address address = faker.address();
        System.out.println(address.buildingNumber());
        System.out.println(address.firstName());
        System.out.println(address.lastName());
        System.out.println(address.cityName());
        System.out.println(address.cityName());
        System.out.println(address.country());
        System.out.println(address.streetAddress());
        System.out.println(address.secondaryAddress());
        System.out.println(address.country());

        System.out.println(address.fullAddress());


    }

    public static void main(String[] args) {
        fakerGeneration();
    }

}
